package com.groupa.project1.chat;

import com.groupa.project1.chat.interfaces.GenericMessage;
import com.groupa.project1.chat.Msg;
import java.io.Serializable;

/**
 *
 * @author groupA
 */
public class GenericMessageClass implements GenericMessage, Serializable{
   
  String Origin;
  String Destination;
  Msg Obj;
  
public GenericMessageClass(String Origin, String Destination, Msg Obj){

    this.Obj = Obj;
    this.Origin = Origin;
    this.Destination = Destination;

}

public String getOrigin(){
    return Origin;
}

public String getDestination(){
    return Destination;
}

public Msg getObj(){
    return Obj;
}

public void setObj(Msg Obj){
    this.Obj = Obj;
}

public void setOrigin(String Origin){
    this.Origin = Origin;
}

public void setDestination(String Destination){
        this.Destination = Destination;
}

}